home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 24
/
Aminet 24 (1998)(GTI - Schatztruhe)[!][Apr 1998].iso
/
Aminet
/
comm
/
mail
/
AEMail.lha
/
aemail143
/
Install_AEMail
< prev
next >
Wrap
Text File
|
1998-01-17
|
44KB
|
1,169 lines
;**
;** Install_AEMail - AEMail installation script for Installer
;**
;** Copyright (c) 1996-1998 John F. Zacharias
;** All rights reserved.
;**
;** This script has been tested with Installer 43.3 which is included with
;** this archive:
;**
;** Installer and Installer project icon
;** (c) Copyright 1995-96 Escom AG. All Rights Reserved.
;** Reproduced and distributed under license from Escom AG.
;**
;** INSTALLER SOFTWARE IS PROVIDED "AS-IS" AND SUBJECT TO CHANGE;
;** NO WARRANTIES ARE MADE. ALL USE IS AT YOUR OWN RISK. NO LIABILITY
;** OR RESPONSIBILITY IS ASSUMED.
;**
;** Use following Icon tooltypes / Command line options:
;**
;** APPNAME=AEMail
;** MINUSER=NOVICE
;**
;**
;** Installer script modified on 01/15/98 for AEMail Version 1.43
(set
;;
;; The source directory name
;;
source-dir (if (= 1 (exists @icon))
(pathonly (expandpath @icon))
(expandpath @icon)))
(set version_3_0 39)
(set aem-vernum (getversion (tackon source-dir "AEMail")))
(set
aem-vernew (/ aem-vernum 65536)
aem-revnew (- aem-vernum (* aem-vernew 65536)))
(set exec-version (/ (getversion) 65536))
(set avail-mem (+ (database "total-mem")))
(set system-cpu (database "cpu"))
(set full-aem-name "AEMail Beta Version 1.30")
(set
aem-name "AEMail"
aem-assign (cat aem-name ":")
aem-Termite 0
)
(if (= 1 (exists "ENV:TermiteTCP.prefs" (noreq)))
(set aem-Termite 1)
(set aem-Termite 0))
(if (= 2 (exists "AMITCP:bin" (noreq)))
(set aem-have-AMITCP 1)
(set aem-have-AMITCP 0))
(if (= 2 (exists "Miami:" (noreq)))
(set aem-have-MIAMI 1)
(set aem-have-MIAMI 0))
(if (= 1 (exists "ENV:AEMail_Dir" (noreq)))
(set @default-dest (getenv ("AEMail_Dir")))
(set @default-dest
(if (= 1 aem-have-AMITCP)
(expandpath "AMITCP:bin")
(@default-dest))))
(if (= "AEMail" (fileonly @default-dest))
(set @default-dest (pathonly @default-dest)))
(if (= 2 @user-level)
(set
;;
;; Sets up where to place AEMail program
;;
@default-dest
(askdir
(prompt "Enter the drawer in which you want AEMail installed\n"
"A drawer called AEMail will be created "
"if it does not already exist (except if AmiTCP:bin is "
"specified)")
(help "If you are using AmiTCP, AEMail should be installed in "
"'AmiTCP:bin'\n\n"
"However, you may install it anywhere you like\n\n"
"If it is not 'AmiTCP:bin' a drawer called 'AEMail' "
"will be created.\n")
(default @default-dest)
(newpath))))
(if (= 1 aem-have-AMITCP)
(if (<> @default-dest (expandpath "AMITCP:bin"))
(set aem-have-AMITCP 0)))
; (if (= "AEMail" (fileonly @default-dest))
; (set @default-dest (pathonly @default-dest)))
(if (= 0 aem-have-AMITCP)
(set @default-dest (tackon @default-dest "AEMail")))
(if (= 0 (exists @default-dest (noreq)))
((makedir @default-dest (infos))
(onerror ((delete @default-dest
(prompt "Deleting AEMail directory")
(help "Deleting AEMail directory")
(optional "force")
(safe)
(all)
(infos))
(delete "RAM:AEMfiles"
(prompt "Deleting RAM: AEMail files")
(optional "force")
(safe)
(all)
(infos))))))
(if (= 1 (exists @default-dest (noreq)))
(set @default-dest (pathonly @default-dest)))
(set aem-default-dest @default-dest)
(set
;;
;; The default Mail directory
;;
aem-change-name 0
atcp-dir (if (= 1 aem-have-AMITCP)
(expandpath "AMITCP:")
(@default-dest))
aem-dft-maildir (if (= 2 (exists aem-assign (noreq)))
(pathonly(getassign aem-name))
(atcp-dir))
aem-mail-name (if (= 2 (exists aem-assign (noreq)))
(fileonly(getassign aem-name))
(""))
)
(if (<> "" aem-mail-name)
(if (<> "AEMail_Mail" aem-mail-name)
((set
aem-change-name
(askbool
(prompt "Your AEMAIL: assignment is for:\n\n"
(getassign aem-name) "\n\n"
"This directory is not named \"AEMail_Mail\"\n\n"
"Do you want to change the directory's name to "
"\"AEMail_Mail\" and use it as your AEMAIL: directory?")
(help "This install script automatically uses an AEMAIL: "
"assignment name of \"AEMail_Mail\". If you reply NO "
"to this request your existing AEMAIL: directory "
"will NOT be used as your mail directory\n")
(default 1))))))
(if (= 1 aem-change-name)
((rename (tackon aem-dft-maildir aem-mail-name)
(tackon aem-dft-maildir "AEMail_Mail")
(prompt "Relabeling AEMAIL: directory")
(help "Relabeling AEMAIL: directory"))
(rename (tackon aem-dft-maildir ("%s.info" aem-mail-name))
(tackon aem-dft-maildir "AEMail_Mail.info")
(prompt "Relabeling AEMAIL: directory .info")
(help "Relabeling AEMAIL: directory .info")))
)
(set
aem-mail-dir (aem-dft-maildir))
(if (= 2 @user-level)
(set
aem-mail-dir
(askdir
(prompt "Enter the drawer in which you want your mail placed. "
"A drawer called 'AEMail_Mail' will be created in this "
"drawer (if it does not already exist) and AEMAIL: will be "
"assigned to 'AEMail_Mail'")
(help "All of your mail and configuration files will be stored "
"in the 'AEMail_Mail' sub-directory of this drawer. An assign "
"statement will be assigned to the 'AEMail_Mail' sub-directory to 'AEMAIL:' "
"and will be placed in your 'S:User-Startup' script.\n\n"
"The directory your specify here will be created if it does "
"not exist\b")
(default aem-dft-maildir)
(newpath))))
(if (= "AEMail_Mail" (fileonly aem-mail-dir))
(set aem-mail-dir (pathonly aem-mail-dir)))
(set aem-mail-dir (tackon aem-mail-dir "AEMail_Mail"))
; Use ENV:PAGER program, Multiview, or copy "More" to RAM: for use
(set
pager-cmd (if (exists "ENV:PAGER" (noreq)) (getenv "PAGER"))
pager-cmd
(if pager-cmd pager-cmd
(if (= 1 (exists "SYS:Utilities/Multiview" (noreq)))
("SYS:Utilities/Multiview")
((copyfiles
(prompt "Copying " (tackon source-dir "c/More") " to RAM: for use")
(source (tackon source-dir "c/More"))
(dest "RAM:")
(safe)
(optional "nofail"))
"RAM:More"))))
(makedir "RAM:AEMfiles")
(copyfiles
(prompt "Copying AEMail.readme to RAM:")
(source (tackon source-dir "AEMail.readme"))
(dest "RAM:AEMfiles")
(infos))
(copyfiles
(prompt "Copying LHA to RAM:")
(source (tackon source-dir "c/LHex"))
(dest "RAM:"))
(set
doc-files (tackon source-dir "files.lha"))
(set
doc-files ("\"%s\"" doc-files))
(message "\n\nSelect PROCEED to decompress the AEMail files to RAM\n\n"
"Be patient, this will take a while\n\n"
"If you are installing from diskette, the decompression "
"will take approx 3 minutes\n\n"
"From your hard drive, the decompression will take approx 20 seconds")
(set aem-lha
(run "RAM:lhex -fwRAM:AEMfiles x " doc-files " >NIL:" (safe)))
(if (< exec-version version_3_0)
(tooltype
(dest "RAM:AEMfiles/AEMail.guide")
(setdefaulttool "AmigaGuide"))
(tooltype
(dest "RAM:AEMfiles/AEMail.guide")
(setdefaulttool "MultiView")))
(delete
"RAM:lhex"
(prompt "Deleting RAM:lha file")
(optional "force")
(safe))
(set
aem-configure 0
aem-interlace 0
aem-needconfig 0
aem-options 3
aem-config "